import request from "@/utils/request";

// 轮播图
export const getBannerApi = () => request.get("/banner");

//user
export const getUserInfoApi = () => request.get("/userInfo");

//丁真登录
export const loginApi=(data)=>request.post('/user/login',data)

// 丁真userInfo
export const getUserInfoApi2=()=>request.get('/user/me')

// 丁真注册
export const registerApi=(data)=>request.put('/user/register',data)

// 判断用户名是否存在
export const isHaveUserApi=(other)=>request.get('/user/check',{},{},other)